package com.fengmi.vo;

import lombok.*;

@Data
@NoArgsConstructor
@RequiredArgsConstructor
public class ResultVO<T> {//向前端返回的CRUD操作信息
    @NonNull
    private boolean success;//CRUD是否成功

    @NonNull
    private String msg;//页面弹窗提示信息

    private T data;//CRUO数据

    public ResultVO(@NonNull boolean success, @NonNull String msg, T data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
}
